<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var zhn={
				"name":"赵浩楠",
				"age":23,
				"height":185,
				"id":11703990132
			};
			
//			//1.防扩展：防止添加
//			Object.preventExtensions(zhn);
//			
//			//2.密封：防止添加和删除
//			Object.seal(zhn);
			
			//3.冻结：防止添加和删除和修改
			Object.freeze(zhn);
			
			//尝试添加删除和修改：
			zhn.id=10086;
			delete zhn.name;
			zhn.weight=75;
			
			console.log(zhn);
			for(var i in zhn){
				console.log(zhn[i])
			}
			
			
		</script>
		
	</body>
</html>
